package com.ies.dx.dex.file;

import com.ies.dx.util.Input;

public class type_item extends dex_item
{
    private int type_idx;
    private String type = null;
    
    public type_item(dex_file file)
    {
        super(file);
    }

    
    public void read(Input dis)
    {
        try
        {
            type_idx = dis.readUnsignedShort();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }        
    }

    public void show()
    {
        
    }
    
    public String getType()
    {
        if (type == null)
            type = mFile.getType(type_idx);
        
        return type;
    }
    
    public String getData()
    {
        return getType();
    }


    @Override
    public void readData(Input dis)
    {
        // TODO Auto-generated method stub
        
    }
}
